package com.yanjr.modules.cms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yanjr.common.persistence.Page;
import com.yanjr.modules.cms.dao.ArticleDao;
import com.yanjr.modules.cms.dao.CategoryDao;
import com.yanjr.modules.cms.entity.Article;
import com.yanjr.modules.cms.service.ArticleService;

@Service("articleService")
@Transactional(readOnly = true)
public class ArticleServiceImpl implements ArticleService {
	
	@Autowired
	private ArticleDao articleDao;
	@Autowired
	private CategoryDao categoryDao;

	@Override
	public Article get(String id) {
		return articleDao.get(id);
	}

	@Override
	public Page<Article> find(Page<Article> page, Article article, boolean isDataScopeFilter) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void save(Article article) {
		// TODO Auto-generated method stub

	}

	@Override
	public void delete(String id, Boolean isRe) {
		// TODO Auto-generated method stub

	}

	@Override
	public List<Object[]> findByIds(String ids) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void updateHitsAddOne(String id) {
		// TODO Auto-generated method stub

	}

	@Override
	public void createIndex() {
		// TODO Auto-generated method stub

	}

	@Override
	public Page<Article> search(Page<Article> page, String q,
			String categoryId, String beginDate, String endDate) {
		// TODO Auto-generated method stub
		return null;
	}

}
